package com.day15.text;

public class TwoTest {
    public static void main(String[] args) {
        int[] nums = {33,77,95,88};

        for(int i =0 ;i<nums.length/2; i++){
            //首尾元素交换
            int temp = nums[i];
            nums[i] = nums[nums.length - 1 - i];
            nums[nums.length-1-i] = temp;
        }
        for(int nu : nums){
            System.out.println(nu);
        }

    }
}

class ThreedTest1 {
    public static void main(String[] args) {
        int[] nums1={33,55,66,88,90};

        for(int i=0; i<nums1.length/2; i++){
            int temp = nums1[i];


        }


    }
}